<h1>농장 리스트</h1>

<table>
  <tr>
    <th>농장이름 </th>
    <th>영문이름 </th>
    <th>나라이름 </th>
    <th>나라코드 </th>
  </tr>

<% @farms.each do |farm| %>

  <tr>
    <td><%=h farm.farmName %></td>
    <td><%=h farm.enFarmName %></td>
    <td><%=h farm.National.NationName %></td>		
    <td><%=h farm.national_id %></td>
    <td><%= link_to 'Show', farm %></td>
    <td><%= link_to 'Edit', edit_farm_path(farm) %></td>
    <td><%= link_to 'Destroy', farm, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>

<% end %>
</table>

<br />

<%= link_to 'New farm', new_farm_path %>
